# -*- coding: utf-8 -*-
import logging


class BaseLogger:
    def __init__(self):
        # 创建模块级别的日志记录器
        self.logger = logging.getLogger(self.__class__.__name__)
        # 初始化自定义日志记录器
        self.logger = logging.LoggerAdapter(self.logger, {'class_name': self.__class__.__name__})
